package com.example.工厂模式.工厂方法;

/**
 * 测试类
 */
public class Main {

    public static void main(String[] args) {
        Factory factoryA = new FactoryA();
        Factory factoryB = new FactoryB();

        Milk milkA = factoryA.makeMilk();
        Milk milkB = factoryB.makeMilk();

        milkA.print();
        milkB.print();
    }
}
